<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
	
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="style.css" />
<title>Lista de Pedidos</title>
</head>
<body>

<div id="wrap">
<div id="header">
<div class="menu">
<ul>
<li><a href="index.html">Voltar</a></li>
</ul>
</div>
<h1><a href="#">Lista de Pedidos</a></h1>
</div>

	<table border="1">
		<thead>
			<tr>
				<th>ID.</th>
				<th>Cod_Cliente</th>
				<th>Data</th>
				<th>Valor</th>
				<th>Produto</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="pedido" items="${pedidos}">
				<tr>
					<td><c:out value="${pedido.idPedido}" /></td>
					<td><c:out value="${pedido.codCliente}" /></td>
					<td><fmt:formatDate pattern="dd/MM/yyyy HH:mm:ss" value="${pedido.data}" /></td>
					<td><fmt:formatNumber value="${pedido.valor}" type="currency"/></td>
					<td><c:out value="${pedido.produto}" /></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<table>
		<tr>
			<td>
				<br>
				<A href="menu.jsp"><span></span></A><br>
			</td>
		</tr>
	</table>
</body>
</html>